package com.woniuxy.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 用户表	
 * </p>
 *
 * @author woniuxy
 * @since 2022-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PerformanceUser对象", description="用户表	")
public class PerformanceUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "部门id")
    private Long departmeId;

    @ApiModelProperty(value = "岗位id")
    private Long postId;

    @ApiModelProperty(value = "状态")
    private String status;
    
    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "软删除")
    @TableLogic//表明为逻辑删除字段
    private Integer deleted;

    @ApiModelProperty(value="记录表")
    private  Long recordId;

    @TableField(exist = false)
    private PerformanceDepartment performanceDepartment;

    @TableField(exist = false)
    private PerformancePost performancePost;

    @TableField(exist = false)
    private DataRecord dataRecord;
}
